package com.computergames.server.message;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class JoinRoomRequestMessage extends Message implements HasJwtToken{
    private String roomName;
    private String username;
    private String jwtToken;

    public JoinRoomRequestMessage() {
    }

    public JoinRoomRequestMessage(String roomName, String username, String jwtToken) {
        this.roomName = roomName;
        this.username = username;
        this.jwtToken = jwtToken;
    }

    @Override
    public int getMessageType() {
        return JoinRoomRequestMessage;
    }
}
